-- GENERATED SPELL FOR [Coldarra Spellbinder] --


function spell0_25719(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25719', 7000, 1)
end

function spell1_25719(pUnit, Event) --@Summon Frozen Spheres,Self--
pUnit:FullCastSpellOnTarget(50583,pUnit)
pUnit:RegisterEvent('Sorts_25719', 1000, 1)
end

function Sorts_25719(pUnit, Event)
local choix_sorts_25719 = math.random(0, 1)
if choix_sorts_25719 == 0 then
pUnit:RegisterEvent('spell0_25719', 1, 1)
end
if choix_sorts_25719 == 1 then
pUnit:RegisterEvent('spell1_25719', 1, 1)
end
end

function mob25719_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25719', math.random(1500, 3000), 1)
end

function mob25719_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25719_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25719_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25719, 1, 'mob25719_Action')
RegisterUnitEvent(25719, 2, 'mob25719_Leave')
RegisterUnitEvent(25719, 3, 'mob25719_Kill')
RegisterUnitEvent(25719, 4, 'mob25719_Die')
